package com.ruoyi.trainingManagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.trainingManagement.mapper.TrainingProgramCoursesScheduleMapper;
import com.ruoyi.trainingManagement.domain.TrainingProgramCoursesSchedule;
import com.ruoyi.trainingManagement.service.ITrainingProgramCoursesScheduleService;

/**
 * 培养方案课程班级中间表Service业务层处理
 * 
 * @author chenxl
 * @date 2025-08-04
 */
@Service
public class TrainingProgramCoursesScheduleServiceImpl implements ITrainingProgramCoursesScheduleService 
{
    @Autowired
    private TrainingProgramCoursesScheduleMapper trainingProgramCoursesScheduleMapper;

    /**
     * 查询培养方案课程班级中间表
     * 
     * @param id 培养方案课程班级中间表主键
     * @return 培养方案课程班级中间表
     */
    @Override
    public TrainingProgramCoursesSchedule selectTrainingProgramCoursesScheduleById(String id)
    {
        return trainingProgramCoursesScheduleMapper.selectTrainingProgramCoursesScheduleById(id);
    }

    /**
     * 查询培养方案课程班级中间表列表
     * 
     * @param trainingProgramCoursesSchedule 培养方案课程班级中间表
     * @return 培养方案课程班级中间表
     */
    @Override
    public List<TrainingProgramCoursesSchedule> selectTrainingProgramCoursesScheduleList(TrainingProgramCoursesSchedule trainingProgramCoursesSchedule)
    {
        return trainingProgramCoursesScheduleMapper.selectTrainingProgramCoursesScheduleList(trainingProgramCoursesSchedule);
    }

    /**
     * 新增培养方案课程班级中间表
     * 
     * @param trainingProgramCoursesSchedule 培养方案课程班级中间表
     * @return 结果
     */
    @Override
    public int insertTrainingProgramCoursesSchedule(TrainingProgramCoursesSchedule trainingProgramCoursesSchedule)
    {
        return trainingProgramCoursesScheduleMapper.insertTrainingProgramCoursesSchedule(trainingProgramCoursesSchedule);
    }

    /**
     * 修改培养方案课程班级中间表
     * 
     * @param trainingProgramCoursesSchedule 培养方案课程班级中间表
     * @return 结果
     */
    @Override
    public int updateTrainingProgramCoursesSchedule(TrainingProgramCoursesSchedule trainingProgramCoursesSchedule)
    {
        return trainingProgramCoursesScheduleMapper.updateTrainingProgramCoursesSchedule(trainingProgramCoursesSchedule);
    }

    /**
     * 批量删除培养方案课程班级中间表
     * 
     * @param ids 需要删除的培养方案课程班级中间表主键
     * @return 结果
     */
    @Override
    public int deleteTrainingProgramCoursesScheduleByIds(String[] ids)
    {
        return trainingProgramCoursesScheduleMapper.deleteTrainingProgramCoursesScheduleByIds(ids);
    }

    /**
     * 删除培养方案课程班级中间表信息
     * 
     * @param id 培养方案课程班级中间表主键
     * @return 结果
     */
    @Override
    public int deleteTrainingProgramCoursesScheduleById(String id)
    {
        return trainingProgramCoursesScheduleMapper.deleteTrainingProgramCoursesScheduleById(id);
    }
}
